<{include file="header.html"}>
	<div class="one_third">

			<div class="box_tool">
				<div class="box_head"><{$smarty.const._LB_TOOLBOX|utf8_escape_html}></div>
				<div class="box_content">
					<a href="<{$smarty.const.APPLICATION_URL}>/service/group_form/">
							<{$smarty.const._LB_CREATE_SERVICE_GROUP|utf8_escape_html}>
					</a>
					</br>
					<a href="<{$smarty.const.APPLICATION_URL}>/service/form/">
						<{$smarty.const._LB_CREATE_SERVICE_BOOKING|utf8_escape_html}>
					</a>
				</div>
			</div>
			<div class="spacer"></div>
	</div>

	<div class="two_third">
		<div class="box_two_third">
		<div class="box_head"><{$smarty.const._LB_SERVICE_MANAGEMENT|utf8_escape_html}></div>
		<div class="box_content">
			<div>
				<{if $service|count > 0 }>
					<{foreach from=$service key=gID item=data}>
						<{assign var=gTitle value=$data.TITLE}>
						<{assign var=sDATA value=$data.DATA}>
						<div class="object">
							<div class="head" style="font-weight: bold;color:#990000;"><{$gTitle|utf8_escape_html}>
							<span class="right">
								<a href="<{$smarty.const.APPLICATION_URL}>/service/group_form/?id=<{$gID}>"><img src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_EDIT_SMALL}>" alt="" class="small" title="<{$smarty.const._LB_EDIT|utf8_escape_html}>" /></a>
                                <{if $service_group->canBeDeleted($gID)}>
								<a onclick="return confirm('<{$smarty.const._MSG_SERVICE_GROUP_DELETION_CONFIRM|utf8_escape_html}>')"  href="<{$smarty.const.APPLICATION_URL}>/service/delete/?gid=<{$gID}>">
									<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_DELETE_SMALL}>" alt=""  title="<{$smarty.const._LB_DELETE|utf8_escape_html}>" />
								</a>
                                <{/if}>
							</span>
							</div>
							<hr>
							<{if $sDATA|count > 0 }>
							<{foreach from=$sDATA key=ID item=item}>
							<div class="object">
								<div class="head">
									<span class="right">
										<a href="<{$smarty.const.APPLICATION_URL}>/service/form/?id=<{$item.ID}>"><img src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_EDIT_SMALL}>" alt="" class="small" title="<{$smarty.const._LB_EDIT|utf8_escape_html}>" /></a>
                                        <{if $service_booking->canBeDeleted($item.ID)}>
										<a onclick="return confirm('<{$smarty.const._MSG_SERVICE_BOOKING_DELETION_CONFIRM|utf8_escape_html}>')"  href="<{$smarty.const.APPLICATION_URL}>/service/delete/?id=<{$item.ID}>">
											<img class="small" src="<{$smarty.const.APPLICATION_URL}>/images/<{$smarty.const.IMAGE_NAME_DELETE_SMALL}>" alt=""  title="<{$smarty.const._LB_DELETE|utf8_escape_html}>" />
										</a>
                                        <{/if}>
									</span>
									<img src="<{$output->buildImagePath($smarty.const.IMAGE_NAME_NEWS)}>" alt="" class="small" />
									<{$item.TITLE|utf8_escape_html}></b>
									<div class="content">
										<{$smarty.const.TIME}> : <{$item.TIME|utf8_escape_html}><br />
										<{$smarty.const.PRICE}> : <{$item.PRICE|utf8_escape_html}>
										<div style="clear: both;"></div>
									</div>
								</div>
							</div>
							<{/foreach}>
							<{/if}>
						</div>
					<{/foreach}>
				<{else}>
					<{$smarty.const._LB_NO_ITEM|utf8_escape_html}>
				<{/if}>
			</div>
		</div>
        <div class="pagination">
            <{$pager->display()}>
        </div>
	</div>
	</div>

<{include file="footer.html"}>